package com.unionpay.mobile.android.pro.views;

import android.content.Context;
import com.unionpay.mobile.android.nocard.views.l;
import com.unionpay.mobile.android.plugin.c;
import com.unionpay.mobile.android.utils.h;
import com.unionpay.mobile.android.utils.i;
import org.simalliance.openmobileapi.Reader;
import org.simalliance.openmobileapi.SEService;

public class a extends l
{
  public a(Context paramContext)
  {
    super(paramContext);
  }

  protected final void r()
  {
    try
    {
      Class.forName("org.simalliance.openmobileapi.SEService");
      com.unionpay.mobile.android.model.b.aQ = true;
      new i(this.d, this);
      return;
    }
    catch (Exception localException)
    {
      localException.printStackTrace();
      com.unionpay.mobile.android.model.b.aQ = false;
      s();
    }
  }

  public final void v()
  {
    while (true)
    {
      try
      {
        h.c("uppay-pro", "checkAndGetSDCardsList +++");
        if (!"00".equalsIgnoreCase(this.a.D.c))
        {
          if (!"95".equalsIgnoreCase(this.a.D.c))
            break label112;
          break label107;
          com.unionpay.mobile.android.pro.pboc.engine.b localb = z();
          b localb1 = new b(this);
          if (localb != null)
          {
            z().a(localb1, bool);
            h.c("uppay-pro", "checkAndGetSDCardsList ---");
            return;
          }
          localb1.a(null);
          continue;
        }
      }
      finally
      {
      }
      label107: boolean bool = true;
      continue;
      label112: bool = false;
    }
  }

  public final void y()
  {
    StringBuffer localStringBuffer = new StringBuffer("000");
    boolean bool = com.unionpay.mobile.android.model.b.aQ;
    i locali = null;
    if (bool)
      locali = new i();
    if ((locali != null) && (i.a() != null) && (i.a().isConnected()))
      for (Reader localReader : i.a().getReaders())
        if (localReader != null)
        {
          if (localReader.getName().toLowerCase().startsWith("sim"))
            localStringBuffer.setCharAt(0, '1');
          if (localReader.getName().toLowerCase().startsWith("ese"))
            localStringBuffer.setCharAt(1, '1');
          if (localReader.getName().toLowerCase().startsWith("sd"))
            localStringBuffer.setCharAt(2, '1');
        }
    d(localStringBuffer.toString());
  }

  public com.unionpay.mobile.android.pro.pboc.engine.b z()
  {
    return null;
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.unionpay.mobile.android.pro.views.a
 * JD-Core Version:    0.6.2
 */